﻿using BCGM.MedicalWisdom.Repository.UnitOfWorks;
using BCGM.MedicalWisdom.Repository.Base;
using SqlSugar;
using BCGM.MedicalWisdom.Common;
using BCGM.MedicalWisdom.Model.Models.Patients;

namespace BCGM.MedicalWisdom.Repository.Patients
{
    /// <summary>
    /// patientRepository
    /// </summary>
    public class patientRepository : BaseRepository<patient>, IPatientRepository
    {

        private ISqlSugarClient _db;

        public patientRepository(IUnitOfWorkManage unitOfWorkManage) : base(unitOfWorkManage)
        {
        }


        public int GetTotal(string sql)
        {
            return _db.Ado.GetInt(sql);
        }
    }
}